function heart_control(){
	//********************************************************************************************************************
    //                                                               점수표기 하트 처리(hover, click)
	//********************************************************************************************************************
	//마우스 오버
	$(".heart1").bind("mouseover", hover_heart_on);
	$(".heart2").bind("mouseover", hover_heart_on);
	$(".heart3").bind("mouseover", hover_heart_on);
	$(".heart4").bind("mouseover", hover_heart_on);
	$(".heart5").bind("mouseover", hover_heart_on);
	//마우스아웃
	$(".heart1").bind("mouseout", hover_heart_off);
	$(".heart2").bind("mouseout", hover_heart_off);
	$(".heart3").bind("mouseout", hover_heart_off);
	$(".heart4").bind("mouseout", hover_heart_off);
	$(".heart5").bind("mouseout", hover_heart_off);
	//클릭
	$(".heart1").on("click", click_heart);
	$(".heart2").on("click", click_heart);
	$(".heart3").on("click", click_heart);
	$(".heart4").on("click", click_heart);
	$(".heart5").on("click", click_heart);	
}

function hover_heart_on(){
	$(this).css("color", "hotpink");		
	$(this).prevAll().css("color", "hotpink");
}
function hover_heart_off(){
	$(this).css("color", "gray");	
	$(this).prevAll().css("color", "gray");
}
function click_heart(){
	$(this).unbind("mouseout");
	$(this).unbind("mouseover");
	$(this).siblings().unbind("mouseout");
	$(this).siblings().unbind("mouseover");
}
function allGray(beerInfoId){
	$("#heart1_"+beerInfoId).css("color", "gray");
	$("#heart2_"+beerInfoId).css("color", "gray");
	$("#heart3_"+beerInfoId).css("color", "gray");
	$("#heart4_"+beerInfoId).css("color", "gray");
	$("#heart5_"+beerInfoId).css("color", "gray");
}
